Create cairo context after running validate_visible_area()
authorKristian Rietveld <kris@gtk.org>
Wed, 15 Sep 2010 12:20:31 +0000 (14:20 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 26 Sep 2010 13:11:34 +0000 (15:11 +0200)
commit03cf19e8e27aeb5aae1af2e8f6e14cb21f13126c
treea6d9f4c0ffb4731d0460ecc579235540cf866bc0
parent0129b891530f4bde6c92ec3ad1d722b116bf0443
Create cairo context after running validate_visible_area()

validate_visible_area() can change the vertical adjustment and thus
trigger window moves/scrolls.  This seems to change the surface for
which gtk_tree_view_bin_expose() just created a cairo context.  Creating
the cairo context after the call to validate_visible_area() fixes
such crashes.
gtk/gtktreeview.c